<?php
// +----------------------------------------------------------------------
// | 日志设置
// +----------------------------------------------------------------------
return [
    // 默认日志记录通道
    'default' => env('log.channel', 'file'),
    // 日志记录级别
    'level' => [],
    // 日志类型记录的通道 ['error'=>'email',...]
    'type_channel' => ['info', 'error', 'sql'],
    // 关闭全局日志写入
    'close' => false,
    // 全局日志处理 支持闭包
    'processor' => null,

    // 日志通道列表
    'channels' => [
        'file' => [
            // 日志记录方式
            'type' => 'File',
            // 日志保存目录
            'path' => '',
            // 单文件日志写入
            'single' => false,
            // 独立日志级别
            'apart_level' => [],
            // 最大日志文件数量
            'max_files' => 0,
            // 使用JSON格式记录
            'json' => false,
            // 日志处理
            'processor' => null,
            // 关闭通道日志写入
            'close' => false,
            // 日志输出格式化
            'format' => '[%s][%s] %s',
            // 是否实时写入
            'realtime_write' => false,
            'time_format' => 'Y-m-d H:i:s',
            // 日志大小10M
            'file_size' => 1024 * 1024 * 10,
        ],
        
        // 添加卡片更新专用日志通道
        'card_update' => [
            // 日志记录方式
            'type' => 'File',
            // 日志保存目录 - 使用相对路径
            'path' => runtime_path() . 'log/card_update',
            // 单文件日志写入
            'single' => false,
            // 独立日志级别
            'apart_level' => ['error', 'info'],
            // 最大日志文件数量
            'max_files' => 30,
            // 使用JSON格式记录
            'json' => false,
            // 日志处理
            'processor' => null,
            // 关闭通道日志写入
            'close' => false,
            // 日志输出格式化
            'format' => '[%s][%s] %s',
            // 是否实时写入
            'realtime_write' => true,
            'time_format' => 'Y-m-d H:i:s',
            // 日志大小10M
            'file_size' => 1024 * 1024 * 10,
        ],
        
        // 添加万里付专用日志通道
        'worldfirst' => [
            'type' => 'File',
            'path' => runtime_path() . 'log/worldfirst',
            'single' => false,
            'apart_level' => ['error', 'info'],
            'max_files' => 30,
            'json' => false,
            'processor' => null,
            'close' => false,
            'format' => '[%s][%s] %s',
            'realtime_write' => true,
            'time_format' => 'Y-m-d H:i:s',
            'file_size' => 1024 * 1024 * 10,
        ],
        
        // 添加空中云付专用日志通道
        'airwallex' => [
            'type' => 'File',
            'path' => runtime_path() . 'log/airwallex',
            'single' => false,
            'apart_level' => ['error', 'info'],
            'max_files' => 30,
            'json' => false,
            'processor' => null,
            'close' => false,
            'format' => '[%s][%s] %s',
            'realtime_write' => true,
            'time_format' => 'Y-m-d H:i:s',
            'file_size' => 1024 * 1024 * 10,
        ],
        
        // 添加slash专用日志通道
        'slash' => [
            'type' => 'File',
            'path' => runtime_path() . 'log/slash',
            'single' => false,
            'apart_level' => ['error', 'info'],
            'max_files' => 30,
            'json' => false,
            'processor' => null,
            'close' => false,
            'format' => '[%s][%s] %s',
            'realtime_write' => true,
            'time_format' => 'Y-m-d H:i:s',
            'file_size' => 1024 * 1024 * 10,
        ],
        
        // 添加卡片状态更新专用日志通道
        'card_status' => [
            'type' => 'File',
            'path' => runtime_path() . 'log/card_status',
            'single' => false,
            'apart_level' => ['error', 'info'],
            'max_files' => 30,
            'json' => false,
            'processor' => null,
            'close' => false,
            'format' => '[%s][%s] %s',
            'realtime_write' => true,
            'time_format' => 'Y-m-d H:i:s',
            'file_size' => 1024 * 1024 * 10,
        ],
        
        // 添加万里付状态更新专用日志通道
        'worldfirst_status' => [
            'type' => 'File',
            'path' => runtime_path() . 'log/worldfirst_status',
            'single' => false,
            'apart_level' => ['error', 'info'],
            'max_files' => 30,
            'json' => false,
            'processor' => null,
            'close' => false,
            'format' => '[%s][%s] %s',
            'realtime_write' => true,
            'time_format' => 'Y-m-d H:i:s',
            'file_size' => 1024 * 1024 * 10,
        ],
        
        // 添加slash状态更新专用日志通道
        'slash_status' => [
            'type' => 'File',
            'path' => runtime_path() . 'log/slash_status',
            'single' => false,
            'apart_level' => ['error', 'info'],
            'max_files' => 30,
            'json' => false,
            'processor' => null,
            'close' => false,
            'format' => '[%s][%s] %s',
            'realtime_write' => true,
            'time_format' => 'Y-m-d H:i:s',
            'file_size' => 1024 * 1024 * 10,
        ],
        
        // 添加卡片查询专用日志通道
        'card_query' => [
            'type' => 'File',
            'path' => runtime_path() . 'log/card_query',
            'single' => false,
            'apart_level' => ['error', 'info'],
            'max_files' => 30,
            'json' => false,
            'processor' => null,
            'close' => false,
            'format' => '[%s][%s] %s',
            'realtime_write' => true,
            'time_format' => 'Y-m-d H:i:s',
            'file_size' => 1024 * 1024 * 10,
        ],
        
        // 添加万里付查询专用日志通道
        'worldfirst_query' => [
            'type' => 'File',
            'path' => runtime_path() . 'log/worldfirst_query',
            'single' => false,
            'apart_level' => ['error', 'info'],
            'max_files' => 30,
            'json' => false,
            'processor' => null,
            'close' => false,
            'format' => '[%s][%s] %s',
            'realtime_write' => true,
            'time_format' => 'Y-m-d H:i:s',
            'file_size' => 1024 * 1024 * 10,
        ],
        
        // 添加万里付导入专用日志通道
        'worldfirst_import' => [
            'type' => 'File',
            'path' => runtime_path() . 'log/worldfirst_import',
            'single' => false,
            'apart_level' => ['error', 'info'],
            'max_files' => 30,
            'json' => false,
            'processor' => null,
            'close' => false,
            'format' => '[%s][%s] %s',
            'realtime_write' => true,
            'time_format' => 'Y-m-d H:i:s',
            'file_size' => 1024 * 1024 * 10,
        ],
        
        // 添加交易查询专用日志通道
        'query_transaction' => [
            'type' => 'File',
            'path' => runtime_path() . 'log/query_transaction',
            'single' => false,
            'apart_level' => ['error', 'info'],
            'max_files' => 30,
            'json' => false,
            'processor' => null,
            'close' => false,
            'format' => '[%s][%s] %s',
            'realtime_write' => true,
            'time_format' => 'Y-m-d H:i:s',
            'file_size' => 1024 * 1024 * 10,
        ],
    ],
];